package serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;

import mapper.UserMapper;
import model.User;
import service.LoginService;

public class LoginServiceImpl implements LoginService{

	@Autowired
	private UserMapper userMapper;
	
	@Override
	public boolean checkPassword(User user) {
		String password=userMapper.selectUserById(user.getId()).getPassword();
		
		if(password.equals(user.getPassword())){
			return true;
		}
		return false;
	}
	
}
